package com.hr.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hr.service.IEmployeeService;
import com.hr.vo.ResultSet;

@Controller
@RequestMapping("/employee")
public class EmployeeController extends BaseController {
	
	@Autowired 
	private IEmployeeService employeeService;
	
	@ResponseBody
	@RequestMapping("list")
	public ResultSet listAll() {
//		List<Employee> emplist = employeeService.listAll();
//		ResultVO r = new ResultVO();
//		r.setDatas(emplist);
		return employeeService.listAll();
	}
	
	public void insert() {
		
	}

}
